package cn.iocoder.yudao.module.warehouse.controller.admin.warehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 库房列表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WarehouseRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "库房名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("库房名称")
    private String warehouseName;

    @Schema(description = "库房类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "库房类型", converter = DictConvert.class)
    @DictFormat("warehouse_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer type;

    @Schema(description = "库房规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("库房规格")
    private Integer capacity;

    @Schema(description = "使用状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "使用状态", converter = DictConvert.class)
    @DictFormat("warehouse_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建人")
    @ExcelProperty("创建人")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}